package hexui;

import hexgame.GameState;
import hexgame.Player;
import hexgame.PlayerFactory;

public class ObservingPlayerFactory implements PlayerFactory{
	
	String name;
	
	public ObservingPlayerFactory (String name) {
	this.name = name;	
	}

	@Override
	public Player createPlayer(GameState state) {
		String description = name + " vs. remote player";
		return new ObservingPlayer(state, description);
	}
}
